package cn.thoughtworks.school.repositories;


import cn.thoughtworks.school.entities.VideoSubscription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface VideoSubscriptionRepository extends JpaRepository<VideoSubscription,Long> {
  Optional<VideoSubscription> findByUserIdAndVideoId(Long userId, Long videoId);

}
